package com.newway.back.entity.approval;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.newway.common.BaseEntity;
import com.newway.back.enums.ApproverTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("approval_nodes")
public class ApprovalNode extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer nodeId;

    private Integer templateId;
    private Integer version;
    private String nodeName;
    private Integer nodeLevel;

//    @EnumValue
//    private ApproverTypeEnum approverType;  // 枚举见下方
    private String approverType;

    private String approverValue;

    private LocalDateTime createdAt;
}